<?php

namespace forfun\repository\entity;

class Weird {
    const STATE_DRAFT = 0;
    const STATE_CHECKING = 1;
    const STATE_PUBLISHED = 2;
    const STATE_DELETED = 3;
    /**
     * @var int id.
     * @primary
     */
    private $_id;
    /**
     * @var int 用户ID.
     * @alias ("user_id")
     */
    private $_userId;
    /**
     * @var string 标题.
     * @alias ("title")
     */
    private $_title;
    /**
     * @var string 创建时间.
     * @alias ("create_time")
     */
    private $_createTime;
    /**
     * @var string 内容.
     */
    private $_content;
    /**
     * @var string 更新时间.
     * @alias ("update_time")
     */
    private $_updateTime;
    /**
     * @var int 赞数.
     * @alias ("favour_number")
     */
    private $_favourNumber;
    /**
     * @var int 评论数.
     * @alias ("comment_number")
     */
    private $_commentNumber;
    /**
     * @var int 状态.
     * @alias ("state")
     */
    private $_state;

    public function getId()
    {
        return $this->_id;
    }

    public function setId($id)
    {
        $this->_id = $id;
    }

    public function getUserId()
    {
        return $this->_userId;
    }

    public function setUserId($userId)
    {
        $this->_userId = $userId;
    }

    public function getTitle()
    {
        return $this->_title;
    }

    public function setTitle($title)
    {
        $this->_title = $title;
    }

    public function getCreateTime()
    {
        return $this->_createTime;
    }

    public function setCreateTime($createTime)
    {
        $this->_createTime = $createTime;
    }

    public function getContent()
    {
        return $this->_content;
    }

    public function setContent($content)
    {
        $this->_content = $content;
    }

    public function getUpdateTime()
    {
        return $this->_updateTime;
    }

    public function setUpdateTime($updateTime)
    {
        $this->_updateTime = $updateTime;
    }

    public function getFavourNumber()
    {
        return $this->_favourNumber;
    }

    public function setFavourNumber($favourNumber)
    {
        $this->_favourNumber = $favourNumber;
    }

    public function getCommentNumber()
    {
        return $this->_commentNumber;
    }

    public function setCommentNumber($commentNumber)
    {
        $this->_commentNumber = $commentNumber;
    }

    public function getState()
    {
        return $this->_state;
    }

    public function setState($state)
    {
        $this->_state = $state;
    }
}